﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Cesave.DistributedServices.PermisosModule.Tests
{
    [TestClass]
    public class PermisosModuleValidatorTests
    {
        [TestMethod]
        public void Validate_Invoke()
        {
            // Arrange
            PermisosModuleValidator validator = new PermisosModuleValidator();

            string username = "samacs";
            string password = "P@ssw0rd";

            // Act
            validator.Validate(username, password);
            AuthenticationResult actual = validator.AuthenticationResult;

            // Assert
            Assert.AreEqual(AuthenticationResult.LoginSuccessfull, actual);
        }
    }
}
